package com.ruoyi.job.task;


import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.health.api.RemoteHealthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
@Component("healthReportTask")
public class HealthReportTask {

    @Autowired
    private RemoteHealthService remoteHealthService;

    public void handle(String date){
        remoteHealthService.createHealthReportTask( date, SecurityConstants.INNER);
    }
    public void handleWeek(String date){
        remoteHealthService.createHealthReportByWeekTasK( date, SecurityConstants.INNER);
    }
    public void handleMonth(String date){
        remoteHealthService.createHealthReportByMonthTasK( date, SecurityConstants.INNER);
    }
}
